<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.2">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"wrr123.github.io","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.json"};
  </script>

  <meta name="description" content="闲时与你立黄昏，笑问灶前粥可温。">
<meta property="og:type" content="article">
<meta property="og:title" content="vop问题梳理">
<meta property="og:url" content="https://wrr123.github.io/2021/04/22/vop%E9%97%AE%E9%A2%98%E6%A2%B3%E7%90%86/index.html">
<meta property="og:site_name" content="一缕烟气">
<meta property="og:description" content="闲时与你立黄昏，笑问灶前粥可温。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2021-04-22T02:43:40.000Z">
<meta property="article:modified_time" content="2022-02-18T02:52:04.525Z">
<meta property="article:author" content="田园隐士">
<meta property="article:tag" content="vop">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://wrr123.github.io/2021/04/22/vop%E9%97%AE%E9%A2%98%E6%A2%B3%E7%90%86/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>vop问题梳理 | 一缕烟气</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

<style>mjx-container[jax="SVG"] {
  direction: ltr;
}

mjx-container[jax="SVG"] > svg {
  overflow: visible;
}

mjx-container[jax="SVG"][display="true"] {
  display: block;
  text-align: center;
  margin: 1em 0;
}

mjx-container[jax="SVG"][justify="left"] {
  text-align: left;
}

mjx-container[jax="SVG"][justify="right"] {
  text-align: right;
}

g[data-mml-node="merror"] > g {
  fill: red;
  stroke: red;
}

g[data-mml-node="merror"] > rect[data-background] {
  fill: yellow;
  stroke: none;
}

g[data-mml-node="mtable"] > line[data-line] {
  stroke-width: 70px;
  fill: none;
}

g[data-mml-node="mtable"] > rect[data-frame] {
  stroke-width: 70px;
  fill: none;
}

g[data-mml-node="mtable"] > .mjx-dashed {
  stroke-dasharray: 140;
}

g[data-mml-node="mtable"] > .mjx-dotted {
  stroke-linecap: round;
  stroke-dasharray: 0,140;
}

g[data-mml-node="mtable"] > svg {
  overflow: visible;
}

[jax="SVG"] mjx-tool {
  display: inline-block;
  position: relative;
  width: 0;
  height: 0;
}

[jax="SVG"] mjx-tool > mjx-tip {
  position: absolute;
  top: 0;
  left: 0;
}

mjx-tool > mjx-tip {
  display: inline-block;
  padding: .2em;
  border: 1px solid #888;
  font-size: 70%;
  background-color: #F8F8F8;
  color: black;
  box-shadow: 2px 2px 5px #AAAAAA;
}

g[data-mml-node="maction"][data-toggle] {
  cursor: pointer;
}

mjx-status {
  display: block;
  position: fixed;
  left: 1em;
  bottom: 1em;
  min-width: 25%;
  padding: .2em .4em;
  border: 1px solid #888;
  font-size: 90%;
  background-color: #F8F8F8;
  color: black;
}

foreignObject[data-mjx-xml] {
  font-family: initial;
  line-height: normal;
  overflow: visible;
}

.MathJax path {
  stroke-width: 3;
}

mjx-container[display="true"] {
  overflow: auto hidden;
}

mjx-container[display="true"] + br {
  display: none;
}
</style><link rel="alternate" href="/atom.xml" title="一缕烟气" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">一缕烟气</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">沧海月明珠有泪，蓝田日暖玉生烟</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://wrr123.github.io/2021/04/22/vop%E9%97%AE%E9%A2%98%E6%A2%B3%E7%90%86/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="田园隐士">
      <meta itemprop="description" content="talk is cheap, show me the code">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="一缕烟气">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          vop问题梳理
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2021-04-22 10:43:40" itemprop="dateCreated datePublished" datetime="2021-04-22T10:43:40+08:00">2021-04-22</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2022-02-18 10:52:04" itemprop="dateModified" datetime="2022-02-18T10:52:04+08:00">2022-02-18</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/wm/" itemprop="url" rel="index"><span itemprop="name">wm</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span><br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="far fa-file-word"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>5.8k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="far fa-clock"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>5 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p><span style="color:Chocolate;text-align:center;display:inline-block;width:100%;">闲时与你立黄昏，笑问灶前粥可温。</span><br><span id="more"></span></p>
<h4 id="系统架构和功能组件梳理"><a href="#系统架构和功能组件梳理" class="headerlink" title="系统架构和功能组件梳理"></a>系统架构和功能组件梳理</h4><ul>
<li>druid 数据库连接池</li>
<li>MyBatis</li>
<li>Redis缓存</li>
<li>PageHelper分页插件</li>
<li>Quartz定时任务</li>
</ul>
<h4 id="代码层结构梳理"><a href="#代码层结构梳理" class="headerlink" title="代码层结构梳理"></a>代码层结构梳理</h4><h4 id="业务层业务逻辑梳理"><a href="#业务层业务逻辑梳理" class="headerlink" title="业务层业务逻辑梳理"></a>业务层业务逻辑梳理</h4><h4 id="数据库信息"><a href="#数据库信息" class="headerlink" title="数据库信息"></a>数据库信息</h4><div class="table-container">
<table>
<thead>
<tr>
<th>数据库环境</th>
<th>主数据库ip</th>
<th>数据库实例</th>
<th>用户名</th>
<th>密码</th>
<th>只读数据库ip</th>
<th>实例</th>
<th>用户名</th>
<th>密码</th>
</tr>
</thead>
<tbody>
<tr>
<td>dev</td>
<td>10.58.21.15</td>
<td>vop</td>
<td>root</td>
<td>Wm-motor2020</td>
<td>10.58.21.15</td>
<td>vop</td>
<td>root</td>
<td>Wm-motor2020</td>
</tr>
<tr>
<td>fat</td>
<td>10.59.21.2</td>
<td>vop</td>
<td>crud_only</td>
<td>crud_only#vop@2021</td>
<td>10.59.21.2</td>
<td>vop</td>
<td>crud_only</td>
<td>crud_only#vop@2021</td>
</tr>
<tr>
<td>uat</td>
<td>10.53.21.9</td>
<td>vop</td>
<td>root</td>
<td>Wm-motor2020</td>
<td>10.53.21.9</td>
<td>vop</td>
<td>root</td>
<td>Wm-motor2020</td>
</tr>
<tr>
<td>prd</td>
<td>10.56.21.3</td>
<td>vop</td>
<td>vop</td>
<td>7bkLXslKpeKV8VK5</td>
<td>10.56.21.6</td>
<td>vop</td>
<td>vop_read_only</td>
<td>87WLZ1jkZpBonBP0</td>
</tr>
</tbody>
</table>
</div>
<h4 id="技术"><a href="#技术" class="headerlink" title="技术"></a>技术</h4><h5 id="forest"><a href="#forest" class="headerlink" title="forest"></a>forest</h5><p>它是一个开源的Java HTTP客户端框架，它能够将HTTP的所有请求信息(包括URL、Header以及Body等信息)绑定到你自定义的Interface方法上，能够通过调用本地接口方法的方式发送HTTP请求。</p>
<h6 id="常见的一些使用方式"><a href="#常见的一些使用方式" class="headerlink" title="常见的一些使用方式"></a>常见的一些使用方式</h6><ol>
<li><p>请求类型：可支持（GET, POST, PUT, HEAD, OPTIONS, DELETE）</p>
</li>
<li><p>动态替换请求中的变量（可传入）</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * post请求</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> domainName 参数传递domainName（变量绑定是<span class="doctag">@DataVariable</span>，视情况而定可以不出现在url上）</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> port 参数传递 port（变量绑定是<span class="doctag">@DataVariable</span>）</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@PostRequest(url = "http://${domainName}:${port}")</span></span><br><span class="line">String <span class="title function_">testDataVariable</span><span class="params">(<span class="meta">@DataVariable("domainName")</span> String domainName, <span class="meta">@DataVariable("port")</span> Integer port)</span>;</span><br></pre></td></tr></table></figure>
</li>
<li><p>动态替换请求变量的优化（对模板替换和批量参数等不够优雅和繁杂）</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * Query的时候需要注意的点：</span></span><br><span class="line"><span class="comment"> * (1) 需要单个单个定义 参数名=参数值 的时候，<span class="doctag">@Query</span>注解的value值一定要有，比如 <span class="doctag">@Query</span>("name") String name</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * (2) 需要绑定对象的时候，<span class="doctag">@Query</span>注解的value值一定要空着，比如 <span class="doctag">@Query</span> User user 或 <span class="doctag">@Query</span> Map map</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line">   	   </span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * post请求</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> domainName (<span class="doctag">@Query</span>修饰的参数一定会出现在url中)</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> port</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@PostRequest(url = "http://domainName:port")</span></span><br><span class="line">String <span class="title function_">testQuery</span><span class="params">(<span class="meta">@Query("domainName")</span> String domainName, <span class="meta">@Query("port")</span> Integer port)</span>;</span><br><span class="line">   </span><br><span class="line">  <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * post请求</span></span><br><span class="line"><span class="comment"> * 使用 <span class="doctag">@Query</span> 注解，可以修饰 Map 类型的参数</span></span><br><span class="line"><span class="comment"> * 很自然的，Map 的 Key 将作为 URL 的参数名， Value 将作为 URL 的参数值</span></span><br><span class="line"><span class="comment"> * 这时候 <span class="doctag">@Query</span> 注解不定义名称</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> map</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@PostRequest(url = "http://domainName:port")</span></span><br><span class="line">String <span class="title function_">testQuery</span><span class="params">(<span class="meta">@Query</span> Map&lt;String, Object&gt; map)</span>;</span><br><span class="line">   </span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Query</span> 注解也可以修饰自定义类型的对象参数</span></span><br><span class="line"><span class="comment"> * 依据对象类的 Getter 和 Setter 的规则取出属性</span></span><br><span class="line"><span class="comment"> * 其属性名为 URL 参数名，属性值为 URL 参数值</span></span><br><span class="line"><span class="comment"> * 这时候 <span class="doctag">@Query</span> 注解不定义名称</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> urlClass 这是你的入参对象</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@PostRequest(url = "http://domainName:port")</span></span><br><span class="line">String <span class="title function_">testQuery</span><span class="params">(<span class="meta">@Query</span> UrlClass urlClass)</span>;</span><br></pre></td></tr></table></figure>
</li>
<li><p>关于请求头的设置</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> *  @Header使用注意事项</span></span><br><span class="line"><span class="comment"> * (1) 需要单个单个定义请求头的时候，@Header注解的value值一定要有，比如 @Header("Content-Type") String contentType</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * (2) 需要绑定对象的时候，@Header注解的value值一定要空着，比如 @Header MyHeaders headers 或 @Header Map headerMap</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line">   		   </span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 默认get请求，在head中也可以使用<span class="doctag">@Query</span>设置值同理<span class="doctag">@DataVariable</span></span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> encoding</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Request(</span></span><br><span class="line"><span class="meta">        url = "http://www.baidu.com",</span></span><br><span class="line"><span class="meta">        headers = {</span></span><br><span class="line"><span class="meta">                "Accept-Charset: ${encoding}",</span></span><br><span class="line"><span class="meta">                "Content-Type: text/plain"</span></span><br><span class="line"><span class="meta">        }</span></span><br><span class="line"><span class="meta">)</span></span><br><span class="line">String <span class="title function_">testheaders</span><span class="params">(<span class="meta">@Query("encoding")</span> String encoding)</span>;</span><br><span class="line">   	</span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * post请求</span></span><br><span class="line"><span class="comment"> * 使用 <span class="doctag">@Header</span> 注解将参数绑定到请求头上</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Header</span> 注解的 value 指为请求头的名称，参数值为请求头的值</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Header</span>("Accept") String accept将字符串类型参数绑定到请求头 Accept 上</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Header</span>("accessToken") String accessToken将字符串类型参数绑定到请求头 accessToken 上</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> accept</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> accessToken</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Post("http://www.baidu.com")</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testHead</span><span class="params">(<span class="meta">@Header("Accept")</span> String accept, <span class="meta">@Header("accessToken")</span> String accessToken)</span>;</span><br><span class="line">   		</span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 使用 <span class="doctag">@Header</span> 注解可以修饰 Map 类型的参数</span></span><br><span class="line"><span class="comment"> * Map 的 Key 指为请求头的名称，Value 为请求头的值</span></span><br><span class="line"><span class="comment"> * 通过此方式，可以将 Map 中所有的键值对批量地绑定到请求头中</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> headerMap</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Post("http://www.baidu.com")</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testHead</span><span class="params">(<span class="meta">@Header</span> Map&lt;String, Object&gt; headerMap)</span>;</span><br><span class="line">   		</span><br><span class="line">   		</span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 使用 <span class="doctag">@Header</span> 注解可以修饰自定义类型的对象参数</span></span><br><span class="line"><span class="comment"> * 依据对象类的 Getter 和 Setter 的规则取出属性</span></span><br><span class="line"><span class="comment"> * 其属性名为 URL 请求头的名称，属性值为请求头的值</span></span><br><span class="line"><span class="comment"> * 以此方式，将一个对象中的所有属性批量地绑定到请求头中</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Post("http://localhost:8080/hello/user?username=foo")</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testHead</span><span class="params">(<span class="meta">@Header</span> HeaderInfo headersInfo)</span>;</span><br></pre></td></tr></table></figure>
</li>
<li><p>请求中的附加参数（head和body中）</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * delete请求</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> url</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> param 这是数据参数，附加在请求上，get在head，post在body</span></span><br><span class="line"><span class="comment"> *              此方法<span class="doctag">@DataParam</span>已过时</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@DeleteRequest(url = "${url}")</span></span><br><span class="line">String <span class="title function_">testVariableAndParam</span><span class="params">(<span class="meta">@DataVariable("url")</span> String url, <span class="meta">@DataParam("param")</span> String param)</span>;</span><br><span class="line">   </span><br><span class="line">   <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Body</span>注解修饰的参数一定会绑定到请求体中</span></span><br><span class="line"><span class="comment"> * 默认body格式为 application/x-www-form-urlencoded，即以表单形式序列化数据</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> username</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> password</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> *    username=xxx&amp;password=xxx （这是默认格式，如果要转为json格式，在请求头中设置即可Content-Type: application/json）</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Post(</span></span><br><span class="line"><span class="meta">        url = "http://www.baidu.com",</span></span><br><span class="line"><span class="meta">        headers = {"Accept:text/plain"}</span></span><br><span class="line"><span class="meta">)</span></span><br><span class="line">String <span class="title function_">testBody</span><span class="params">(<span class="meta">@Body("username")</span> String username,  <span class="meta">@Body("password")</span> String password)</span>;</span><br><span class="line">   	</span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 也可以使用<span class="doctag">@Body</span>修饰，将整个类以表单方式传输</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> item</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Post(</span></span><br><span class="line"><span class="meta">        url = "http://www.baidu.com",</span></span><br><span class="line"><span class="meta">        headers = {"Accept:text/plain"}</span></span><br><span class="line"><span class="meta">)</span></span><br><span class="line">String <span class="title function_">testBody</span><span class="params">(<span class="meta">@Body</span> Item item)</span>;</span><br><span class="line">   	</span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 被 <span class="doctag">@JSONBody</span>注解修饰的参数会根据其类型被自定解析为JSON字符串, (也可以拆分开，修饰单个参数，如 <span class="doctag">@JSONBody</span>(string) String string)</span></span><br><span class="line"><span class="comment"> *  修饰map等亦可以，当修饰 list的时候，结果类型可为["A", "B", "C"]</span></span><br><span class="line"><span class="comment"> * 使用 <span class="doctag">@JSONBody</span>注解时可以省略 contentType = "application/json"属性设置</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> item</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> *    {"username": "xx", "password": "xxx"}</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Post("http://www.baidu.com")</span></span><br><span class="line">String <span class="title function_">testJSONBody</span><span class="params">(<span class="meta">@JSONBody</span> Item item)</span>;</span><br><span class="line">   </span><br></pre></td></tr></table></figure>
</li>
<li><p>基础请求</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment">  * <span class="doctag">@BaseRequest</span> 为配置接口层级请求信息的注解，</span></span><br><span class="line"><span class="comment">  * 其属性会成为该接口下所有请求的默认属性，</span></span><br><span class="line"><span class="comment">  * 但可以被方法上定义的属性所覆盖</span></span><br><span class="line"><span class="comment">  *</span></span><br><span class="line"><span class="comment">  * <span class="doctag">@BaseRequest</span>注解中的所有字符串属性都可以通过模板表达式引用全局变量或方法中的参数。</span></span><br><span class="line"><span class="comment">  * 若全局变量中已定义 baseUrl</span></span><br><span class="line"><span class="comment">  * 便会将全局变量中的值绑定到 <span class="doctag">@BaseRequest</span> 的属性中</span></span><br><span class="line"><span class="comment">  */</span></span><br><span class="line"> <span class="meta">@BaseRequest(</span></span><br><span class="line"><span class="meta">         baseURL = "${baseUrl}",     // 默认域名</span></span><br><span class="line"><span class="meta">         headers = {</span></span><br><span class="line"><span class="meta">                 "Accept:text/plain"                // 默认请求头</span></span><br><span class="line"><span class="meta">         },</span></span><br><span class="line"><span class="meta">         sslProtocol = "sslType"                    // 默认单向SSL协议(TLS)</span></span><br><span class="line"><span class="meta"> )</span></span><br><span class="line"> <span class="keyword">interface</span> <span class="title class_">MyClient</span> {</span><br><span class="line">   	</span><br><span class="line">     <span class="comment">/**</span></span><br><span class="line"><span class="comment">      * 在 <span class="doctag">@BaseRequest</span> 中的属性亦可以引用方法中的绑定变量名的参数</span></span><br><span class="line"><span class="comment">      * <span class="doctag">@param</span> baseUrl 在BaseRequest注解中被引用</span></span><br><span class="line"><span class="comment">      * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment">      */</span></span><br><span class="line">     <span class="meta">@Get("/hello/user")</span></span><br><span class="line">     String <span class="title function_">testOne</span><span class="params">(<span class="meta">@DataVariable("baseUrl")</span> String baseUrl)</span>;</span><br><span class="line">   	</span><br><span class="line">     <span class="comment">/**</span></span><br><span class="line"><span class="comment">      * 方法的URL不必再写域名部分</span></span><br><span class="line"><span class="comment">      * <span class="doctag">@param</span> sslType 在BaseRequest注解中被引用</span></span><br><span class="line"><span class="comment">      * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment">      */</span></span><br><span class="line">     <span class="meta">@Get("/hello/user")</span></span><br><span class="line">     String <span class="title function_">testTwo</span><span class="params">(<span class="meta">@Query("sslType")</span> String sslType)</span>;</span><br><span class="line">   	</span><br><span class="line">     <span class="comment">/**</span></span><br><span class="line"><span class="comment">      * 若方法的URL是完整包含http://开头的，那么会以方法的URL中域名为准，不会被接口层级中的baseUrl属性覆盖</span></span><br><span class="line"><span class="comment">      * <span class="doctag">@param</span> username</span></span><br><span class="line"><span class="comment">      * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment">      */</span></span><br><span class="line">     <span class="meta">@Get("http://www.xxx.com/hello/user")</span></span><br><span class="line">     String <span class="title function_">testThree</span><span class="params">(<span class="meta">@Query("username")</span> String username)</span>;</span><br><span class="line">   	</span><br><span class="line">     <span class="comment">/**</span></span><br><span class="line"><span class="comment">      * 覆盖请求头中信息</span></span><br><span class="line"><span class="comment">      * <span class="doctag">@param</span> username</span></span><br><span class="line"><span class="comment">      * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment">      */</span></span><br><span class="line">     <span class="meta">@Get(</span></span><br><span class="line"><span class="meta">             url = "/hello/user",</span></span><br><span class="line"><span class="meta">             headers = {</span></span><br><span class="line"><span class="meta">                     "Accept:application/json"      // 覆盖接口层级配置的请求头信息</span></span><br><span class="line"><span class="meta">             }</span></span><br><span class="line"><span class="meta">     )</span></span><br><span class="line">     String <span class="title function_">testFour</span><span class="params">(<span class="meta">@Query("username")</span> String username)</span>;</span><br><span class="line">   	</span><br><span class="line"> }</span><br><span class="line">   </span><br></pre></td></tr></table></figure>
</li>
<li><p>接收响应封装数据</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">   </span><br></pre></td></tr></table></figure>
</li>
</ol>
<h6 id="官方的基本使用"><a href="#官方的基本使用" class="headerlink" title="官方的基本使用"></a>官方的基本使用</h6><ol>
<li>添加maven依赖</li>
<li>创建一个interface</li>
<li>扫描接口</li>
<li>调用接口</li>
</ol>
<h5 id="SpringBoot整合RabbitMQ"><a href="#SpringBoot整合RabbitMQ" class="headerlink" title="SpringBoot整合RabbitMQ"></a>SpringBoot整合RabbitMQ</h5>
    </div>

    
    
    
        

  <div class="followme">
    <p>欢迎关注我的其它发布渠道</p>

    <div class="social-list">

        <div class="social-item">
          <a target="_blank" class="social-link" href="/atom.xml">
            <span class="icon">
              <i class="fa fa-rss"></i>
            </span>

            <span class="label">RSS</span>
          </a>
        </div>
    </div>
  </div>


      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/vop/" rel="tag"># vop</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2021/04/12/%E9%A1%B9%E7%9B%AE%E5%BC%80%E5%8F%91%E4%B9%8B%E7%99%BD%E9%93%B6%E9%98%B6%E6%AE%B5/" rel="prev" title="项目开发之白银阶段">
      <i class="fa fa-chevron-left"></i> 项目开发之白银阶段
    </a></div>
      <div class="post-nav-item">
    <a href="/2021/04/25/vop%E4%BB%A3%E7%A0%81%E6%95%B4%E7%90%86/" rel="next" title="vop代码整理">
      vop代码整理 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E7%B3%BB%E7%BB%9F%E6%9E%B6%E6%9E%84%E5%92%8C%E5%8A%9F%E8%83%BD%E7%BB%84%E4%BB%B6%E6%A2%B3%E7%90%86"><span class="nav-number">1.</span> <span class="nav-text">系统架构和功能组件梳理</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E4%BB%A3%E7%A0%81%E5%B1%82%E7%BB%93%E6%9E%84%E6%A2%B3%E7%90%86"><span class="nav-number">2.</span> <span class="nav-text">代码层结构梳理</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E4%B8%9A%E5%8A%A1%E5%B1%82%E4%B8%9A%E5%8A%A1%E9%80%BB%E8%BE%91%E6%A2%B3%E7%90%86"><span class="nav-number">3.</span> <span class="nav-text">业务层业务逻辑梳理</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%95%B0%E6%8D%AE%E5%BA%93%E4%BF%A1%E6%81%AF"><span class="nav-number">4.</span> <span class="nav-text">数据库信息</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%8A%80%E6%9C%AF"><span class="nav-number">5.</span> <span class="nav-text">技术</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#forest"><span class="nav-number">5.1.</span> <span class="nav-text">forest</span></a><ol class="nav-child"><li class="nav-item nav-level-6"><a class="nav-link" href="#%E5%B8%B8%E8%A7%81%E7%9A%84%E4%B8%80%E4%BA%9B%E4%BD%BF%E7%94%A8%E6%96%B9%E5%BC%8F"><span class="nav-number">5.1.1.</span> <span class="nav-text">常见的一些使用方式</span></a></li><li class="nav-item nav-level-6"><a class="nav-link" href="#%E5%AE%98%E6%96%B9%E7%9A%84%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8"><span class="nav-number">5.1.2.</span> <span class="nav-text">官方的基本使用</span></a></li></ol></li><li class="nav-item nav-level-5"><a class="nav-link" href="#SpringBoot%E6%95%B4%E5%90%88RabbitMQ"><span class="nav-number">5.2.</span> <span class="nav-text">SpringBoot整合RabbitMQ</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">田园隐士</p>
  <div class="site-description" itemprop="description">talk is cheap, show me the code</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">347</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
        <span class="site-state-item-count">53</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
        <span class="site-state-item-count">115</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">田园隐士</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-chart-area"></i>
    </span>
    <span title="站点总字数">587k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
    <span title="站点阅读时长">8:53</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
  </div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  




  
<script src="/js/local-search.js"></script>













  

  
      

<script>
  if (typeof MathJax === 'undefined') {
    window.MathJax = {
      loader: {
          load: ['[tex]/mhchem'],
        source: {
          '[tex]/amsCd': '[tex]/amscd',
          '[tex]/AMScd': '[tex]/amscd'
        }
      },
      tex: {
        inlineMath: {'[+]': [['$', '$']]},
          packages: {'[+]': ['mhchem']},
        tags: 'ams'
      },
      options: {
        renderActions: {
          findScript: [10, doc => {
            document.querySelectorAll('script[type^="math/tex"]').forEach(node => {
              const display = !!node.type.match(/; *mode=display/);
              const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
              const text = document.createTextNode('');
              node.parentNode.replaceChild(text, node);
              math.start = {node: text, delim: '', n: 0};
              math.end = {node: text, delim: '', n: 0};
              doc.math.push(math);
            });
          }, '', false],
          insertedScript: [200, () => {
            document.querySelectorAll('mjx-container').forEach(node => {
              let target = node.parentNode;
              if (target.nodeName.toLowerCase() === 'li') {
                target.parentNode.classList.add('has-jax');
              }
            });
          }, '', false]
        }
      }
    };
    (function () {
      var script = document.createElement('script');
      script.src = '//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';
      script.defer = true;
      document.head.appendChild(script);
    })();
  } else {
    MathJax.startup.document.state(0);
    MathJax.texReset();
    MathJax.typeset();
  }
</script>

    

  

</body>
</html>
